<?php
class Product extends CI_Controller{
	public function __construct(){
		parent::__construct();
		if(!Auth::isLoggedIn() ) redirect("/");
		if($this->session->userdata("type_user") != "superadmin") redirect("/");
	}
	function index(){
		$data['active_admin_product'] = 'y';
		$data['title'] = TITLE.' - Product';
		$data['tinymce'] = 'y';
		$this->load->view('admin/product',$data);
	}
	function delete($product_id=""){
		redirect("admin/product/index");
	}
	function detail($product_id=""){
		$data['active_admin_product'] = 'y';
		$data['title'] = TITLE.' - Edit Product';
		$data['tinymce'] = 'y';
		$this->load->view('admin/product_detail',$data);
	}
	
}